<?php
/*
    GUMUD is Extensible Web-based Multi-User Dungeon Software.

    Copyright (C) 2013  White Rabbit

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
$itx['config']['com-front'] = getLocalConfig("com-front");
$cxtpl = new XTemplate(pathprivate.'localization/'.$itx['user']['lang'].'/Components/com-' . $itx['get']['com'] . '/xtpl/'.$itx['get']['action'].'.xtpl');
$cxtpl->assign("token",$token);
$cxtpl->assign("walletPPPPxchangerate",walletPPPPxchangerate);
$cxtpl->assign("walletPPwalletxchangerate",walletPPwalletxchangerate);
if (walletPPPPxchangerate == 1) { 
$cxtpl->assign("cent",LANGcent);
}
else {
$cxtpl->assign("cent",LANGcents);
}
if (goldxchangerate == 1) { 
$cxtpl->assign("walletcurrency",LANGwalletcurrency);
}
else {
$cxtpl->assign("walletcurrency",LANGwalletcurrencies);
}
if (lexxchangerate == 1) { 
$cxtpl->assign("walletcurrency",LANGwalletcurrency);
}
else {
$cxtpl->assign("walletcurrency",LANGwalletcurrencies);
}
if (manaxchangerate == 1) { 
$cxtpl->assign("walletcurrency",LANGwalletcurrency);
}
else {
$cxtpl->assign("walletcurrency",LANGwalletcurrencies);
}
if($itx['get']['ob1'] == "wallet") {
$cxtpl->parse("component.wallet");
}
elseif($itx['get']['ob1'] == "gold") {
$cxtpl->parse("component.gold");
}
elseif($itx['get']['ob1'] == "lexical") {
$cxtpl->parse("component.lexical");
}
elseif($itx['get']['ob1'] == "mana") {
$cxtpl->parse("component.mana");
}
$cxtpl->parse("component");
$itx['block']['com'] = $cxtpl->iout("component");
$itx['page']['name'] = "Home";
?>
